#!/bin/bash
#########################################################################
# File Name:    mk.sh
# Author:       ChenBlue
# mail:         ChenBlue952@qq.com
# Created Time: Fri Dec  6 11:20:26 2024
#########################################################################


TOOLS_PATH=../../toolchains

export PATH=$PATH:$TOOLS_PATH/qt/bin
export PATH=$PATH:$TOOLS_PATH/gcc_aarch64_11/bin

function build()
{
	$TOOLS_PATH/qt/bin/qmake
	make -j8
}

function clean()
{
	rm -rf build
	rm `find . -name Makefile`
	rm -rf ./Skin/qrc_images*
	rm -rf ./thirdpart
}

if [[ "$1" == "clean" ]] ; then
	clean
else
	build
fi
